package com.dy.dao;

import com.dy.domain.User;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface UserDao {
    public int add(User user);

    public int update(User user);

    @Delete("delete from user where u_id = #{uId}")
    public int deleteById(Integer uId);

    public User getById(Integer uId);

    //@Select("select * from user")
    public List<User> getAll();
}
